package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.content.model.dto.AddCourseTeacherDto;
import com.xuecheng.content.model.po.CourseTeacher;

import java.util.List;

/**
 * <p>
 * 课程-教师关系表 服务类
 * </p>
 *
 * @author luhao
 * @since 2023-05-10
 */
public interface CourseTeacherService extends IService<CourseTeacher> {
    /**
     * 根据课程Id查询课程教师信息
     * @param courseId
     * @return
     */
    List<CourseTeacher> findCourseTeacherByCourseId(Long courseId);

    /**
     * 添加或者修改课程老师
     * @param companyId 机构Id
     * @param dto 添加或修改课程信息
     * @return 入库信息
     */
    CourseTeacher addOrAmendCourseTeacher(Long companyId, AddCourseTeacherDto dto);

    /**
     * 删除课程老师
     * @param courseId 课程Id
     * @param courseTeacherId 课程老师Id
     * @param companyId 机构Id
     * @return 是否删除成功
     */
    boolean removeCourseTeacher(Long courseId, Long courseTeacherId, Long companyId);

}
